
namespace WpfApp3.Model;

using CommunityToolkit.Mvvm.ComponentModel;
public partial class RequestHistory : ObservableObject
{
    [ObservableProperty, NotifyPropertyChangedFor(nameof(Request))]
    private string _url = "";
    [ObservableProperty, NotifyPropertyChangedFor(nameof(Request))]
    private RequestMethod _method = RequestMethod.GET;
    [ObservableProperty]
    private WpfApp3.Model.KeyValuePair[] _parameters = [];
    [ObservableProperty]
    private WpfApp3.Model.KeyValuePair[] _headers = [];
    [ObservableProperty]
    private string _body = "";
    public string Request => $"{Method} {Url}";
    [ObservableProperty]
    private string _response = "";
    [ObservableProperty]
    private DateTime _date;
    [ObservableProperty]
    private string _responseTime = "";
}